home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
asmexam.arc
/
MOVINST.ASM
< prev
next >
Wrap
Assembly Source File
|
1984-07-31
|
1KB
|
46 lines
PAGE 55,132
TITLE MOV INSTRUCTION FORMS
CODE SEGMENT PARA
ASSUME CS:CODE,DS:CODE
ORG 10H
DATA DW 0BEEFH,0DEADH
BITE DB 0DAH
ORG 100H
; WORD MOVES
S: MOV AX,25 ; IMMEDIATE ==> REGISTER
MOV BX,AX ; REGISTER ==> REGISTER
MOV CX,DATA ; DIRECT ==> REGISTER
MOV BX,0
MOV CX,[BX+DATA] ; BASE+DISP ==> REGISTER
MOV BX,10H
MOV CX,[BX] ; BASE ==> REGISTER
MOV DATA,BX ; DIRECT <== REGISTER 0010=>ADDR(DS:10)
MOV BX,0
MOV AX,3FFEH
MOV [BX+DATA],AX ; BASE+DISP <== REGISTER 3FFF=>ADDR(DS:10)
MOV BX,10H
MOV CX,0BEEDH
MOV [BX],CX ; BASE <== REGISTER BEED =>ADDR(DS:10)
; BYTE MOVES
MOV CL,55H ; IMMEDIATE 55=>CL
MOV AL,BITE ; DIRECT ==> REGISTER DA=>AL
MOV AH,AL ; REGISTER ==>REGISTER DA=>AH
MOV BL,AH ; DA=>BL
MOV BX,0
MOV CL,[BX + BITE] ; BASE + DISP ==> REGISTER DA==> CL
MOV BX,OFFSET BITE ; OR LEA BX,BITE 14=>BX
MOV CH,[BX] ; DA ==> CH
MOV BX,15
MOV [BX],CH ; DA==> ADDR(15)
INT 20H
CODE ENDS
END S